#ifndef BERT_GATEWAYSERVER_H
#define BERT_GATEWAYSERVER_H

#include "TCPClientServer.h"
#include "Singleton.h"

class GatewayServer : public TCPClientServer, public Singleton<GatewayServer>
{
	friend class Singleton<GatewayServer>;

	in_port_t port;

public:

	GatewayServer(in_port_t port = 7777)
	{
		this->port = port;
	}

	void newTCPTask(int connfd, struct sockaddr_in * client );

	bool init();// override

	bool sendLoginCmd(); // override
};

#endif

